package com.blb.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface BaseDao {

	/**
	 * 非查询语句
	 * @param sql
	 * @param params
	 * @throws SQLException
	 */
	void execute(String sql, Object... params)throws SQLException;
	
	/**
	 * 查询语句
	 * @param sql
	 * @param params
	 * @return
	 * @throws SQLException
	 */
	List<Map<String, Object>> get(String sql, Object... params)throws SQLException;
}
